<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>在线分析</title>

<script type="text/javascript" src="jQuery.js"></script>
<script type="text/javascript" src="jqplot.js"></script>


</head>
<body>

	<div id="chart1"></div>

<div style="text-align:center;clear:both;">

</div>
    <div id="chart2"></div>

	<script type="text/javascript">
        function div_add_re(agrs) {
            var my = document.getElementById(agrs);
            my.parentNode.removeChild(my);
            var Odiv=document.createElement("div");
            Odiv.id=agrs;
            document.body.appendChild(Odiv);
        }
        function chart() {

            div_add_re('chart1');
            div_add_re('chart2');
            var data=window.parent.data;
            var data_max=window.parent.data_max ;
            var line_title = ["今天","昨天"]; //曲线名称
            var y_label = "在线人数"; //Y轴标题
            var x_label = "时间"; //X轴标题
            var x = ['00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23']; //定义X轴刻度值
            var title = "这是标题"; //统计图标标题
            c1 = j.jqplot.diagram.base("chart1", data, line_title, "在线人数时实图", x, x_label, y_label, data_max, 1);
            c2 = j.jqplot.diagram.base("chart2", data, line_title, "在线人数时实图2", x, x_label, y_label, data_max, 2);

        }
    chart();
</script>
</body>
</html>

